package config

import "time"

type JWTConfig struct {
	SecretKey       string        `mapstructure:"SECRET_KEY"`
	AccessDuration  time.Duration `mapstructure:"ACCESS_TOKEN_DURATION"`
	RefreshDuration time.Duration `mapstructure:"REFRESH_TOKEN_DURATION"`
}

func LoadJWTConfig() *JWTConfig {
	// 从环境变量/配置文件加载
	return &JWTConfig{
		SecretKey:       "your-secret-key",
		AccessDuration:  150 * time.Minute,
		RefreshDuration: 24 * time.Hour * 7,
	}
}
